package com.example.translate;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TranslateDTO {
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String id;
    private String en;
    private String cn;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Type type;

    @Getter
    public enum Type {
        en2cn,
        cn2en,
        save
    }
}
